<c:if test="${paginated.pageNo != 1 && paginated.pageNo > paginated.pagesPerScreen}">
<a href="">&lt;&lt;</a>
</c:if>
&nbsp;&nbsp;
<c:if test="${paginated.pageNo != 1}">
<a href="">&lt;</a>
</c:if>
&nbsp;&nbsp;
<c:forEach begin="${paginated.firstPageNo}" end="${paginated.lastPageNo}" step="1" var="idx">
    <c:if test="${paginated.pageNo == idx}">
        ${idx} &nbsp;
    </c:if>
    <c:if test="${paginated.pageNo != idx}">
        <a href="">${idx}</a> &nbsp;
    </c:if>
</c:forEach>
&nbsp;&nbsp;
<c:if test="${paginated.pageNo != paginated.totalPage}">
<a href="">&gt;</a>
</c:if>
&nbsp;&nbsp;
<c:if test="${paginated.pageNo != paginated.totalPage && (paginated.totalPage - paginated.pageNo + 1 > paginated.pagesPerScreen)}">
<a href="">&gt;&gt;</a>
</c:if>
